# Process this file with autoconf to produce a configure script.

AC_INIT([Icaro Pipeline], [0.1.0], [cquike@gmail.com], [icaro])
AC_PREREQ([2.59])

AC_CONFIG_SRCDIR([Makefile.am])

AC_CANONICAL_HOST
AC_CANONICAL_TARGET

AM_INIT_AUTOMAKE

AM_MAINTAINER_MODE

IIINSTRUMENT_SET_PREFIX(${PIPE_HOME:-/usr/local})

IIINSTRUMENT_SET_VERSION_INFO([$VERSION])

# Checks for programs.
AC_PROG_CC
AC_PROG_CPP
AC_PROG_CXX
AM_PROG_CC_C_O
AC_PROG_LN_S
AC_PROG_LIBTOOL

# Checks for Refran libraries
PKG_CHECK_MODULES([REFRAN], [refran],  ,AC_MSG_ERROR([no Refran available]))

# Checks for log4cpp library
PKG_CHECK_MODULES([LOG4CPP], [log4cpp],  ,AC_MSG_ERROR([no log4cpp available]))

AC_ENABLE_STATIC(no)
AC_ENABLE_SHARED(yes)

AC_PROG_LIBTOOL
AC_SUBST(LIBTOOL_DEPS)

# call after CPL_CHECK_LIBS and XXCLIPM_CHECK_LIB
IIINSTRUMENT_SET_PATHS 
IIINSTRUMENT_CREATE_SYMBOLS

AM_WITH_DMALLOC


AC_CONFIG_FILES(Makefile
                doxygen/Doxyfile
                recipes/Makefile
                recipes/tests/Makefile)
AC_OUTPUT
